#include <stdio.h>

int main()
{
    int num, sqrt;
    for (num = 1; num < 100; num++)
    {
        sqrt = num * num;
        if(( num < 10  && sqrt%10 == num) || ( num>=10 && sqrt%100 == num))
            printf("%d\n", num);
    }
        return 0;
}